package com.wcll.www;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;

public class ModifySortBean {
	public boolean modifySort(int id,String s){
		boolean flags = false; 
		try{
		Class.forName("com.mysql.jdbc.Driver");
		Connection con = DriverManager.getConnection("jdbc:mysql://localhost/jobs?useUnicode=true&characterEncoding=UTF8","root","");
		Statement st = con.createStatement();
		st.execute("update job_assort set ja_name='"+s+"' where id="+id);
		if(st.getUpdateCount()==1){
				flags= true;
			}
		st.close();
		}catch(Exception e){}
		return flags;	
	}
}
